﻿using Mengsk.ProxyDelivery.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Mengsk.ProxyDelivery.Note.ViewModels
{
    class NoteViewModel : DependencyObject
    {
        public static readonly DependencyProperty StateProperty = DependencyProperty.Register("State", typeof(NoteState), typeof(NoteViewModel));

        public NoteState State { get { return (NoteState)this.GetValue(StateProperty); } set { this.SetValue(StateProperty, value); } }

        public Mengsk.ProxyDelivery.Domain.Note Source { get; set; }

        public NoteViewModel(Mengsk.ProxyDelivery.Domain.Note note)
        {
            this.Source = note;
            this.State = note.State;
        }
    }
}
